/*
 * @Description: 数据空间-模块路由
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2025-02-11
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2025-02-12
 */

export default [
  // 资产目录
  {
    path: '/data-space',
    name: 'data-space',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      {
        name: 'data-space-asset',
        path: 'asset',
        redirect: '/data-space/asset/index',
        children: [
          {
            path: 'index',
            name: 'data-space-asset-index',
            component: () => import('/@/views/main/dataSpace/assets/index.vue'),
          },
          {
            path: 'interface',
            name: 'data-space-asset-interface',
            component: () => import('/@/views/main/dataSpace/interface/index.vue'),
          },
        ],
      },
    ],
  },
  // 合约管理
  {
    name: 'spaceContract',
    path: '/space-contract',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      {
        path: 'index',
        name: 'spaceContract-index',
        component: () => import('/@/views/main/dataSpace/contract/index.vue'),
      },
    ],
  },
  // 策略管理
  {
    name: 'spaceStrategy',
    path: '/space-strategy',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      {
        path: 'index',
        name: 'space-strategy-index',
        component: () => import('/@/views/main/dataSpace/strategy/index.vue'),
      },
    ],
  },
  // 合约记录
  {
    name: 'contract-record',
    path: '/contract-record',
    component: () => import('/@/layouts/layoutMenu.vue'),
    children: [
      {
        path: 'index',
        name: 'contract-record-index',
        component: () => import('/@/views/main/dataSpace/contractRecord/index.vue'),
      },
    ],
  },
]
